package com.four.bmm.entity;

import java.io.Serializable;

/**
 * 用户实体类
 *
 * @author MSJ
 */
public class User implements Serializable {
    private int userid;
    private int userstate;
    private String username;
    private String userpwd;
    private String userpic;

    public User() {
    }

    /**
     * 新增
     * @param userid
     */
    public User(int userid) {
        this.userid = userid;
    }

    public User(String username, String userpwd) {
        this.username = username;
        this.userpwd = userpwd;
    }

    public User(int userid, int userstate, String username, String userpwd, String userpic) {
        this.userid = userid;
        this.userstate = userstate;
        this.username = username;
        this.userpwd = userpwd;
        this.userpic = userpic;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getUserstate() {
        return userstate;
    }

    public void setUserstate(int userstate) {
        this.userstate = userstate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    public String getUserpic() {
        return userpic;
    }

    public void setUserpic(String userpic) {
        this.userpic = userpic;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", userstate=" + userstate +
                ", username='" + username + '\'' +
                ", userpwd='" + userpwd + '\'' +
                ", userpic='" + userpic + '\'' +
                '}';
    }
}
